home *** CD-ROM | disk | FTP | other *** search
Wrap
TTTTmmmmLLLLiiiisssstttt((((3333TTTTmmmm)))) TTTTmmmmLLLLiiiisssstttt((((3333TTTTmmmm)))) NNNNAAAAMMMMEEEE TTTTmmmmLLLLiiiisssstttt - the List widget class SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS xxxxmmmmLLLLiiiisssstttt pathName [options] DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN This is the _t_c_l binding to the Motif List widget. CCCCLLLLAAAASSSSSSSSEEEESSSS The class name for resource files is XXXXmmmmLLLLiiiisssstttt.... Resources are inherited from TTTTmmmmPPPPrrrriiiimmmmiiiittttiiiivvvveeee,,,, TTTTmmmmCCCCoooorrrreeee.... Methods are inherited from TTTTmmmmCCCCoooorrrreeee.... RRRREEEESSSSOOOOUUUURRRRCCCCEEEESSSS The new resources are automaticSelection doubleClickInterval itemCount items listMarginHeight listMarginWidth listSizePolicy listSpacing scrollBarDisplayPolicy selectedItemCount selectedItems stringDirection topItemPosition visibleItemCount iiiitttteeeemmmmCCCCoooouuuunnnntttt The value for this resource is the number of iiiitttteeeemmmmssss.... If this number is different from the actual number of items in the list, Motif will probably core dump. iiiitttteeeemmmmssss The value for this resource is a string consisting of words separated by commas. An item may contain a comma if it is prefixed by the escape character as in `\,'. sssseeeelllleeeeccccttttiiiioooonnnnPPPPoooolllliiiiccccyyyy The values for this resource are single_select multiple_select extended_select browse_select extendedSelectionCallback multipleSelectionCallback singleSelectionCallback PPPPaaaaggggeeee 1111 TTTTmmmmLLLLiiiisssstttt((((3333TTTTmmmm)))) TTTTmmmmLLLLiiiisssstttt((((3333TTTTmmmm)))) MMMMEEEETTTTHHHHOOOODDDDSSSS The extra methods supported for this class are addItem addItemUnselected deleteItem deleteAllItems deletePosition deselectAllItems deselectItem deselectPosition itemExists positionSelected selectItem selectPosition setBottomItem setBottomPosition setItem setPosition browseSelectionCallback defaultActionCallback aaaaddddddddIIIItttteeeemmmm item position Add an item to the list at a particular position. A position of 1 makes it the first, 2 makes it second, etc. A position of 0 makes it the last item. aaaaddddddddIIIItttteeeemmmmUUUUnnnnsssseeeelllleeeecccctttteeeedddd item position Add an item to the list at a particular position. Do not select the item even if it is in the selected set. ddddeeeelllleeeetttteeeeIIIItttteeeemmmm item Delete the first matching item from the list. ddddeeeelllleeeetttteeeePPPPoooossssiiiittttiiiioooonnnn position Delete the item at the position in the list. ddddeeeesssseeeelllleeeeccccttttAAAAllllllllIIIItttteeeemmmmssss remove all items from the selected set. ddddeeeesssseeeelllleeeeccccttttIIIItttteeeemmmm item Deselect the first item in the selected set that matches the item. ddddeeeesssseeeelllleeeeccccttttPPPPoooossssiiiittttiiiioooonnnn position Deselect the item at the specified position. PPPPaaaaggggeeee 2222 TTTTmmmmLLLLiiiisssstttt((((3333TTTTmmmm)))) TTTTmmmmLLLLiiiisssstttt((((3333TTTTmmmm)))) iiiitttteeeemmmmEEEExxxxiiiissssttttssss item returns "true" if the item is in the list, otherwise "false" iiiitttteeeemmmmPPPPoooossssiiiittttiiiioooonnnn item returns the position of the item in the list. sssseeeelllleeeeccccttttIIIItttteeeemmmm item notify Selects the item, and if notify is true calls the selection callback sssseeeelllleeeeccccttttPPPPoooossssiiiittttiiiioooonnnn position notify Selects the item at the position, and if notify is true calls the selection callback. sssseeeettttBBBBoooottttttttoooommmmIIIItttteeeemmmm item make the specified item the last visible item in the list sssseeeettttBBBBoooottttttttoooommmmPPPPoooossssiiiittttiiiioooonnnn position make the item at the position the last visible item in the list. sssseeeettttIIIItttteeeemmmm item make the item the first visible item in the lis sssseeeettttIIIItttteeeemmmm item make the item the first visible item in the list CCCCAAAALLLLLLLLBBBBAAAACCCCKKKK SSSSUUUUBBBBSSSSTTTTIIIITTTTUUUUTTTTIIIIOOOONNNNSSSS The following substitutions are supported: %%%%rrrreeeeaaaassssoooonnnn - the additional values are browse_select default_action extended_select multiple_select single_select %%%%iiiitttteeeemmmm - the selected item. %%%%iiiitttteeeemmmm____ppppoooossssiiiittttiiiioooonnnn - the position of the selected item. %%%%sssseeeelllleeeecccctttteeeedddd____iiiitttteeeemmmmssss - the list of selected items. %%%%sssseeeelllleeeecccctttteeeedddd____iiiitttteeeemmmm____ccccoooouuuunnnntttt - the number of selected items. %%%%sssseeeelllleeeeccccttttiiiioooonnnn____ttttyyyyppppeeee - one of iiiinnnniiiittttiiiiaaaallll mmmmooooddddiiiiffffiiiiccccaaaattttiiiioooonnnn aaaaddddddddiiiittttiiiioooonnnn BBBBUUUUGGGGSSSS If the number of items is different from the number set in itemCount, Motif will probably core dump. The list of items is a tcl list. This is different to the comma- PPPPaaaaggggeeee 3333 TTTTmmmmLLLLiiiisssstttt((((3333TTTTmmmm)))) TTTTmmmmLLLLiiiisssstttt((((3333TTTTmmmm)))) separated list usually used by Motif. Sorry about the inconsistency. AAAAUUUUTTTTHHHHOOOORRRR Jan Newmarch, University of Canberra PPPPaaaaggggeeee 4444